flowbox: Don't render focus erroneously
authorMatthias Clasen <mclasen@redhat.com>
Tue, 15 Dec 2015 20:10:08 +0000 (15:10 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 15 Dec 2015 20:10:08 +0000 (15:10 -0500)
The gadget render function should only return TRUE if the
widget has the focus, and wants it rendered.

gtk/gtkflowbox.c

index 2a1baac730762d3582db249c4de0cfad0eb07a46..018804dd745299961b86807e308da6cea5788a97 100644 (file)
@@ -2767,7 +2767,7 @@ G_GNUC_END_IGNORE_DEPRECATIONS
       cairo_restore (cr);
     }
 
-  return TRUE;
+  return gtk_widget_has_visible_focus (widget);
 }
 
 /* Autoscrolling {{{3 */